package com.example.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper  extends BaseMapper<User> {

    List<User> selecAllProduct(User user);

    void updateProduct(User user);

    void addProduct(User user);

    List<User> selectItPage(User user);

    List<User> selectAllItInfo();

    //分页条件查询
    List<User> selectAll(@Param("name") String name,
                         @Param("id") Integer id,
                         @Param("departmentId") Integer departmentId,
                         @Param("positionId") Integer positionId);

    User selectOne(@Param("id") Integer id);

    User selectJump(@Param("name")String name);
}
